<?
// Global function for accepting the path to an asset and fetching it

function glueprint($item) {
#	require ("glueprint.conf");
	$filename = "glueprint/$item.php";
	if (file_exists($filename)) { 
       $error_reporting = error_reporting(E_ERROR);
       include($filename);
       error_reporting($error_reporting);
	} else { 
		print "<em style=\"background-color:#efd\"><span style=\"color:#693\">Glueprint couldn't locate \"glueprint/$item.php\". Please double-check that the path and filename are valid.</span></em>";
	}
}

// Default functions for connecting directly with your library of assets (strings, images, etc)
// These are tiny helper functions (a.k.a "glue code") that simplify the include process by linking
// directly to the appropriate sub-directory of "glueprint/assets".

function glue_string($item) { 
	glueprint("assets/strings/$item.string"); 
}


// This last function accepts a path to any subdirectoy of "glueprint/assets".
// Use it to quickly test the retrival of a new asset type.

function glue($item) { 
	glueprint("assets/$item"); 
}

?>